package com.tycg.muyu.chat.service.impl;

import com.tycg.muyu.chat.mapper.FriendMapper;
import com.tycg.muyu.chat.pojo.MFriend;
import com.tycg.muyu.chat.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

/**
 * Created by xiaowu on 2020/2/21
 */
@Service
@Transactional
public class FriendServiceImpl implements FriendService {

    @Autowired
    private FriendMapper friendMapper;
    /**
     * 根据用户id查询好友
     * @param uid
     */
    @Override
    public List<MFriend> findByUid(Long uid) {

        return friendMapper.findByUid(uid);
    }
}
